<?php
header('Content-type:text/html;charset=utf8');
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:xjh
 * Date:2016-3-30
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet"  href="<?php echo backweb_CSS_URL;?>index.css" />
<link rel="stylesheet"  href="<?php echo backweb_CSS_URL;?>common.css" />
<script>

function updgoods($goods_id){
	parent.location.href="./index.php?r=backweb/goods/updategoods&goods_id="+$goods_id;
}


</script>
</head>
<body>
	
<div style="margin: 10px">
        <div >
        <form action="./index.php?r=backweb/goods/attrValueAdd&attr_id=<?php echo $attr_id;?>&parent_id=<?php echo @$parent_id;?>" name="fm" method="post">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="40">编号</th>
                   <th width="200">属性值</th>
                   <th width="200">操作</th>
                   <th width="200">是否可用</th>
                   <th width="40">排序</th>
                </tr>
			<?php foreach($attrvalue_info as $_v){?>
         	<tr>
	         	<td class="td_center" ><?php echo $_v['attr_id']?></td>
	         	<td class="td_center" ><?php echo $_v['attr_name']?></td>
	         	<td class="td_center"><a href="./index.php?r=backweb/goods/attrupdate&attr_id=<?php echo $_v['attr_id'];?>">修改</a>|<a href="./index.php?r=backweb/goods/attrdel&attr_id=<?php echo $_v['attr_id'];?>">删除</a></td>
	         	<td class="td_center" id="active" ><a href="./index.php?r=backweb/goods/attractive&attr_id=<?php echo $_v['attr_id']; ?>&active_id=<?php echo $_v['active'];?>"><?php if($_v['active']) {echo "是";}else{echo "否";} ?></a></td>
	         	<td class="td_center" ><?php echo $_v['attr_sort']?></td>
         	</tr>
         	<?php }?>
              <tr>
               <td class="td_center" >新增属性值：</td>
				 <td class="td_center">
				     <input type="text" name="attr_name"  class="input-text "  />
				 </td>	
				 <td></td><td></td>
			  	<td class="td_center" >
				     <input type="text" name="attr_sort"  class="input-text "  />
			  	</td>
			  </tr>
				 <tr><td></td><td></td>
				  <td class="td_center">
				   <input type="submit" name="send" id="btsave" value="添加" class="btn btn82 btn_save ml25" />	
				   <input type="reset" value="重置" class="btn btn82 btn_res ml10" />
				</td>
				<td></td><td></td>
			 </tr>
				 </table>
				  </form>
        </div>
        
        	<div style="text-align:center;">
				<p>共执行<em style="font-weight:bold;"><?php echo @$number;?></em>个sql，查询到<em style="font-weight:bold;"><?php echo @$info_count;?></em>条记录，用时 <em style="font-weight:bold;"><?php echo @$times;?></em> 秒</p>
				<p>版权所有 © 2016-2017 <em style="font-weight:bold;">xjh&lj</em>，并保留所有权利。</p>
			</div>
     </div>
</body>
<body>